package com.ssm.lzh.controller;

import com.ssm.lzh.service.OrderSettingService;
import com.ssm.pojo.T_ordersetting;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;

@Controller
@RequestMapping("/lzh")
public class T_OrderSettingController {


    @Resource
    private OrderSettingService orderSettingService;



    @RequestMapping("/queryOrderSetting")
    @ResponseBody
    public List<T_ordersetting> queryOrderSetting(){
       return   this.orderSettingService.queryOrderSetting();
    }


    @RequestMapping("/updateOrderSetting")
    @ResponseBody
    public int    updateOrderSetting(@RequestBody T_ordersetting t_ordersetting){
        return this.orderSettingService.updateOrderSetting(t_ordersetting);
    }

    @RequestMapping("/queryBookingdate")
    @ResponseBody
    public int   queryBookingdate(String date){
        return this.orderSettingService.queryBookingdate(date);
    }
}
